php display json in browser

35

header('Content-Type: application/json');
<?php
...
$json_string = json_encode($data, JSON_PRETTY_PRINT);

Comments

Submit
0 Comments